<%#
#  Copyright 2009-2010 Michal Trzcinka
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
# 
#  http://www.apache.org/licenses/LICENSE-2.0
# 
#  Unless required by applicable law or agreed to in writing, software distributed
#  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
#  CONDITIONS OF ANY KIND, either express or implied. See the License for the
#  specific language governing permissions and limitations under the License.
%>

<div class="body_resize">

  <div class="full_b">

    <h2><%= t :header, :scope => 'new_participant' %><br /> </h2>
    <div class="form">

      <% form_for :participant, @participant, :url => { :action => 'create' }, :html => {:id => 'contactform'} do |f| %>
        <%= f.error_messages %>

        <ol>

          <li>
            <%= f.label t(:login, :scope => %w{new_participant fields}) %>
            <%= f.text_field :login, :class => 'text' %>
          </li>
          <li>
            <%= f.label t(:password, :scope => %w{new_participant fields}) %>
            <%= f.password_field :password, :class => 'text' %>
          </li>
          <li>
            <%= f.label t(:account_type, :scope => %w{new_participant fields}) %>
            <%= select('participant', 'account_type', User.participant_account_types )  %>
          </li>

          <%= hidden_field :participant, :workshop_id %>

          <li class="buttons">
            <%= f.submit t(:create, :scope => 'new_participant') %>
            <div class="clr"></div>
          </li>

        </ol>
      <% end %>

      <%= link_to t(:back, :scope => 'new_participant'), :action => 'index', :workshop_id => params[:workshop_id]%>

    </div>

  </div>

  <div class="clr"></div>

</div>
